﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="EditTranslate.ascx.cs"
    Inherits="blackhouse.WebNemo.Web.Controls.EditTranslate" %>
<asp:Panel runat="server" ID="pnlAutoCloseScript" Visible="false">
    <script language="javascript" type="text/javascript">
        window.parent.Nemo.NemoPopup.ClosePopup();
        if (window.parent.AfterCloseEditRecord)
            window.parent.AfterCloseEditRecord();
    </script>
</asp:Panel>
<header id="recordEditTranslateHead">
    <div>
        <div class="fLeft recordIdx" id="recordId">
            <asp:Literal runat="server" ID="ltlIdx"> - </asp:Literal>
        </div>
        <div class="headName fLeft bord-left" id="recordEditIdent" data-type="fill-space" data-adjustwidth="-100">
            <h1>
                <asp:HyperLink runat="server" ID="lnkBaseIdentyficator" CssClass="text"> - </asp:HyperLink>
              <%--  <asp:HyperLink runat="server" ID="lnkIdentyficator" CssClass="text" ToolTip="Nazwa zostanie wygenerowana automatycznie, na podstawie wprowadzonych danych">&lt;Nazwa automatycznie&gt;</asp:HyperLink>--%></h1>
           
            <asp:HiddenField runat="server" ID="hfIdentyficator" />
        </div>
        <div class="bord-left fRight buttonHolder">
            <asp:HyperLink runat="server" ToolTip="Powrót do listy" CssClass="textButton" ID="lnkCancel">Anuluj</asp:HyperLink>

            <asp:LinkButton runat="server" ToolTip="Zapisz wprowadzone zmiany" CssClass="styleButton"
                ID="lnkSave" OnClick="Save">Zapisz</asp:LinkButton>

        </div>
         <div class="bord-left fRight twoTextLines">
           Edytowany język:<br />
            <asp:DropDownList runat="server" ID="ddlLanguages" DataValueField="Name" DataTextField="DisplayName"
                    CssClass="hidden-dropdown" AutoPostBack="True" OnSelectedIndexChanged="ddlLanguages_SelectedIndexChanged">
                </asp:DropDownList>
        </div>
    </div>
    <div class="cleaner"></div>
</header>

<asp:Panel CssClass="record-display translate-set" runat="server" ID="pnlRecordDisplay">
    <asp:Panel runat="server" ID="pnlHolder" CssClass="record-edit-i recordColumnLine recordEditLine">
        <asp:Label runat="server" ID="lblName" CssClass="title"></asp:Label>
        <asp:Panel runat="server" ID="pnlEdit" CssClass="editPanel">
        </asp:Panel>
        <asp:Panel runat="server" ID="pnlValidators">
        </asp:Panel>
        <asp:Label runat="server" ID="lblDescription" CssClass="description-line" Visible="false"></asp:Label>
        <div class="clear">
        </div>
    </asp:Panel>
</asp:Panel>
<div class="prev-value">
    <h4>Tekst referencyjny w innym języku:
        <asp:DropDownList runat="server" ID="ddlLanguages2" DataValueField="Name" DataTextField="DisplayName"
            CssClass="hidden-dropdown" AutoPostBack="True" OnSelectedIndexChanged="ddlLanguages2_SelectedIndexChanged">
        </asp:DropDownList>
    </h4>
    <p>
    <asp:Literal runat="server" ID="ltlRefText" />
        </p>
</div>
<div class="prev-value">
    <h4>Tekst oryginalny:</h4><p>
    <asp:Literal runat="server" ID="ltlOryginalText" />
        </p>
</div>
